package com.lge.pitchingcoins.util.sessions;

import java.io.PrintWriter;
import java.net.Socket;

public class ClientsInfo {
	private Socket socket = null;
	private String nickname = null;
	private PrintWriter printWriter = null;
	
	
	public ClientsInfo(Socket socket, PrintWriter printWriter) {
		this.socket = socket;
		this.printWriter = printWriter;
	}
	
	
	public Socket getSocket() {
		return socket;
	}
	
	public void setSocket(Socket socket) {
		this.socket = socket;
	}
	
	public String getNickname() {
		return nickname;
	}
	
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	public PrintWriter getPrintWriter() {
		return printWriter;
	}
	
	public void setPrintWriter(PrintWriter printWriter) {
		this.printWriter = printWriter;
	}
	
	
	// Member Methods
	public void sendMessage(String message) {
		printWriter.println(message);
        printWriter.flush();
	}
}